import _fetch from './requset'
function interviewFilters () {
  return _fetch({
    url: '/interview/filters'
  })
}
// 刷题渲染
function interviewQuestions (params) {
  return _fetch({
    url: '/interview/questions',
    needToken: true,
    params
  })
}
// 答案渲染
function questionsSubmit (data) {
  return _fetch({
    url: '/questions/submit',
    needToken: true,
    method: 'post',
    data
  })
}
// 面试题详情
function questionsId (id) {
  return _fetch({
    url: '/questions/' + id,
    needToken: true
  })
}
export { interviewFilters, interviewQuestions, questionsSubmit, questionsId }
